package com.shenzhen.horselive.beans;

import java.util.List;

public class NoticeBean {

    /**
     * errCode : null
     * errMessage : null
     * total : 3
     * data : [{"id":4,"newsTitle":"fghfg","newsContent":"fghfg","newsTimestamp":"1598598259"},{"id":3,"newsTitle":"sdfsd","newsContent":"sdfsd","newsTimestamp":"1598598258"},{"id":2,"newsTitle":"测试消息","newsContent":"这是一个测试的消息","newsTimestamp":"1598598256"}]
     * success : true
     */

    private String errCode;
    private String errMessage;
    private int total;
    private boolean success;
    private List<DataBean> data;

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 4
         * newsTitle : fghfg
         * newsContent : fghfg
         * newsTimestamp : 1598598259
         */

        private int id;
        private String newsTitle;
        private String newsContent;
        private String newsTimestamp;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getNewsTitle() {
            return newsTitle;
        }

        public void setNewsTitle(String newsTitle) {
            this.newsTitle = newsTitle;
        }

        public String getNewsContent() {
            return newsContent;
        }

        public void setNewsContent(String newsContent) {
            this.newsContent = newsContent;
        }

        public String getNewsTimestamp() {
            return newsTimestamp;
        }

        public void setNewsTimestamp(String newsTimestamp) {
            this.newsTimestamp = newsTimestamp;
        }
    }
}
